java remove first digit from int

140

java remove first digit from int -

int x = 123456789;
int new_x = Integer.parseInt(Integer.toString(x).substring(1));

Comments

Submit
0 Comments